import { defineStore } from 'pinia'
export const globalStore = defineStore('global', {
  state: () => {
    return {
      token: 'token',
      isLogin: false
    }
  },
  getters: {
    isToken: (state) => !!state.token
  },
  actions: {
    updatedLogin (flag: boolean) {
      this.isLogin = flag
    }
  }
})
